<?php
/**
 * Created by JetBrains PhpStorm.
 * User:Mihail Markitan
 * Date: 10/30/11
 * Time: 9:47 PM
 */
?>
<div class="form">
<div class="row">
    <?php echo CHtml::label('Bill to','billto'); ?>
    <?php echo CHtml::dropDownList('billto',1,array(0=>'000 ||Nick0 ||adr0',1=>'000 ||Nick0 ||adr0')) ?>
</div>
<div class="row">
    Ship to
</div>
<div class="row">
    <table style=" width: 755px;">
        <tr>
            <td>
              Addres 1</br>
              Addres 2</br>
              City, State, Zip</br>
            </td>
            <td>
              Addres 1</br>
              Addres 2</br>
              City, State, Zip</br>
            </td>

        </tr>
    </table>

</div>
<div class="row">
    <?php echo CHtml::label('Invoice Number','inv',array('style'=>'width: 100px;')); ?>
    <?php echo CHtml::textField('inv'); ?>
    <?php echo CHtml::label('Aggrement','billto',array('style'=>'width: 100px;')); ?>
    <?php echo CHtml::dropDownList('Aggrement',1,array(0=>'test0',1=>'test1')) ?>
</div>
<div class="row">
    <?php echo CHtml::label('Invoice Date','inv',array('style'=>'width: 100px;')); ?>
    <?php echo CHtml::textField('inv'); ?>
     <?php echo CHtml::label('Agreement','billto',array('style'=>'width: 100px;')); ?>
    <?php echo CHtml::dropDownList('Agreement',1,array(0=>'test0',1=>'test1')) ?>
</div>
    <div class="row">
    <?php echo CHtml::label('Department','inv',array('style'=>'width: 100px;')); ?>
     <?php echo CHtml::dropDownList('Department',1,array(0=>'test0',1=>'test1')) ?>
     <?php echo CHtml::label('Sales person','billto',array('style'=>'width: 100px;')); ?>
    <?php echo CHtml::dropDownList('billto',1,array(0=>'test0',1=>'test1')) ?>
</div>
    <div class="row">
  <?php echo CHtml::label('Tax Code','tc',array('style'=>'width: 100px;')); ?>
     <?php echo CHtml::dropDownList('tc',1,array(0=>'test0',1=>'test1')) ?>
     <?php echo CHtml::label('Created by','crby',array('style'=>'width: 100px;')); ?>
    <?php echo CHtml::textField('crby') ?>
    </div>
     <div class="row">
    <?php echo CHtml::label('Job','job',array('style'=>'width: 100px;')); ?>
     <?php echo CHtml::dropDownList('job',1,array(0=>'test0',1=>'test1')) ?>
     <?php echo CHtml::label('Terms','billto',array('style'=>'width: 100px;')); ?>
    <?php echo CHtml::dropDownList('billto',1,array(0=>'test0',1=>'test1')) ?>
    </div>
    <div class="row">
     <?php echo CHtml::label('Customer PO','inv',array('style'=>'width: 100px;')); ?>
    <?php echo CHtml::textField('inv'); ?>

    </div>


 <?php $this->renderPartial('_tab',array(
                    'model'=>$location,
                ));?>
                <br/>
                   <div id="customer-tab">
                    <div id="item-list">

                    </div>

                </div>
    <div class="row">
    <table style=" width: 755px;">
            <tr>
                <td>
      <?php echo CHtml::label('Place invoice in hold','hold',array('style'=>'width: 150px;')); ?>
     <?php echo CHtml::checkBox('hold');?>
                    <br clear="both">
                    <?php echo CHtml::label('Terms','billto',array('style'=>'width: 150px;')); ?>
    <?php echo CHtml::dropDownList('billto',1,array(0=>'test0',1=>'test1')) ?>
                </td>
                <td>
                  <span>Material cost&nbsp;  0.00</span></br>
                  <span>Labor cost &nbsp;&nbsp;&nbsp; 0.00</span></br>
                  <span>Other cost &nbsp;&nbsp;&nbsp;&nbsp; 0.00</span></br>
                </td>
                <td>
                    Tax:&nbsp;&nbsp;&nbsp; 0.00 <br>
                    Total : 0.00
                </td>
            </tr>
        </table>
    </div>


</div>
 
